FROM openjdk:8-jdk-alpine
ENV LANG en_US.UTF-8
RUN echo -e http://mirrors.ustc.edu.cn/alpine/v3.7/main/ > /etc/apk/repositories
RUN apk add --update --no-cache ttf-dejavu fontconfig && rm -rf /var/cd/apk/*
VOLUME /tmp
ADD train-web-7.0.jar /app.jar
ENV JVM_ARG="-Xms1G"
ENTRYPOINT java -Duser.timezone=GMT+08:00 ${JVM_ARG} -jar /app.jar